<template>
    <el-tooltip   class="item" effect="dark" :content="name" placement="top">
          <i
              v-bind="$attrs"
              :class="[icon,isDel?del:ordinary]"

          >
          </i>
    </el-tooltip>
</template>

<script>
export default {
  name: "inline-button",
  props:{
    icon: String,
    name: String,
    isDel: {
      type: Boolean,
      default: false
    }
  },
  emits:['icon','name'],
  data(){
    return{
      ordinary: 'table-line-button',
      del: 'table-line-button-del'

    }
  }
}
</script>

<style scoped>

</style>